package main

import "fmt"

func main() {
	// 我们想在切片里面放一系列用户的信息，这时候我们就可以定义一个元素为map类型的切片
	userInfo := make([]map[string]string, 2, 2)
	if userInfo[0] == nil {
		userInfo[0] = make(map[string]string)
		userInfo[0]["name"] = "小皮皮"
		userInfo[0]["age"] = "一岁半"
		userInfo[0]["sex"] = "男"
	}
	if userInfo[1] == nil {
		userInfo[1] = make(map[string]string)
		userInfo[1]["name"] = "小阿皮"
		userInfo[1]["age"] = "一岁半"
		userInfo[1]["sex"] = "男"
	}
	fmt.Println(userInfo)
}
